package com.greenway.beans.clickstates;

import javax.faces.application.FacesMessage;

import org.primefaces.event.map.PointSelectEvent;
import org.primefaces.model.map.MapModel;
import com.greenway.beans.MapBean;

public class NothingOnMapClickState implements State {

	private MapBean mapBean;

	public NothingOnMapClickState(MapBean mapBean) {
		this.mapBean = mapBean;
	}
	
	@Override
	public void handleMarker(PointSelectEvent event, MapModel mapModel) {
						
		mapBean.addMessage(new FacesMessage(FacesMessage.SEVERITY_INFO, "Info",
                "Clicking does nothing in this mode"));
	}

}
